package com.steven.design.XingWei_Pattern.ZeRenLian;

public class JiaoWuChu extends Leader{
    @Override
    void handler(Integer leaveDays) {
        if(leaveDays <=10){
            System.out.println("我是教务处我通过的请假:"+leaveDays);
        }else {
            if(getNext() !=null){
                getNext().handler(leaveDays);
            }else {
                System.out.println("天数太长无人敢审批");
            }
        }
    }
}
